﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace TXTD.Admin.Data.Migrations
{
    public partial class _202206241 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "SYS_MENU",
                columns: table => new
                {
                    MenuId = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false),
                    MenuName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
                    MenuTitle = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: false),
                    MenuParh = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: false),
                    MenuType = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
                    MenuSort = table.Column<int>(type: "int", nullable: false),
                    ComponentPath = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
                    OpenWay = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Enabled = table.Column<bool>(type: "bit", nullable: false),
                    EmnuPermissions = table.Column<string>(type: "nvarchar(300)", maxLength: 300, nullable: false),
                    CREATED_BY = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    CREATED_TIME = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UPDATED_BY = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: true),
                    UPDATED_TIME = table.Column<DateTime>(type: "datetime2", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SYS_MENU", x => x.MenuId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "SYS_MENU");
        }
    }
}
